package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.model.MessageCollection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MessageCollectionMapper extends FsMapper<MessageCollection> {

    /**
     * 根据userId查询收藏列表
     * @param userId
     * @return
     */
    List<MessageCollection> queryCollectionListByUserId(@Param("userId") Long userId);

    /**
     * 删除收藏信息
     * @param id
     */
    int deleteCollectionById(@Param("id") Integer id);
}